package builder;

public class BuilderA extends Builder {

    // 主食
    ProductA product;

    public BuilderA() {
        this.product = new ProductA();
    }

    @Override
    public void buildPartA() {
        product.setName("汉堡");
    }

    @Override
    public void buildPartB() {
        product.setWeight(100);
    }

    @Override
    public void buildPartC() {
        product.setTime(20181207);
    }

    @Override
    public Product getResult() {
        return product;
    }
}
